//
//  UIButton+BaseAttributes.m
//  MonitoringNetwork
//
//  Created by admin on 2017/12/5.
//  Copyright © 2017年 wtmcxlm. All rights reserved.
//

#import "UIButton+BaseAttributes.h"

@implementation UIButton (BaseAttributes)

+ (UIButton *)bttonWithTitle:(NSString *)title andNormalTitleColor:(UIColor *)normalColor selectColor:(UIColor *)selecColor titleFont:(CGFloat)font
{
    UIButton *btn = [UIButton new];
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setTitleColor:normalColor forState:UIControlStateNormal];
    [btn setTitleColor:selecColor forState:UIControlStateSelected];
    btn.titleLabel.font = [UIFont systemFontOfSize:font];
    return btn;
}


@end
